{
 "cells": [
  {
   "cell_type": "code",
   "execution_count": null,
   "metadata": {},
   "outputs": [],
   "source": [
    "name = input('name:')\n",
    "age =int(input('age:'))\n",
    "job = input('job:')\n",
    "salary = int(input('salary:'))\n",
    "info_占位符 = '''------INFO %s------\n",
    "name:%s\n",
    "age:%d\n",
    "job:%s\n",
    "salary:%d''' %(name, name, age, job, salary)\n",
    "print(info_占位符)\n",
    "# .format()格式化 字符串\n",
    "info_format = '''----INFO{姓名}----\n",
    "name:{姓名}\n",
    "age:{年龄}\n",
    "job：{工作}\n",
    "salary:{薪水}''' .format(年龄=age, 姓名=name, 工作=job, 薪水=salary)\n",
    "print(info_format)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "metadata": {},
   "outputs": [],
   "source": []
  }
 ],
 "metadata": {
  "kernelspec": {
   "display_name": "Python 3",
   "language": "python",
   "name": "python3"
  },
  "language_info": {
   "codemirror_mode": {
    "name": "ipython",
    "version": 3
   },
   "file_extension": ".py",
   "mimetype": "text/x-python",
   "name": "python",
   "nbconvert_exporter": "python",
   "pygments_lexer": "ipython3",
   "version": "3.8.3"
  }
 },
 "nbformat": 4,
 "nbformat_minor": 4
}
